home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / raytrace / radiance / simplerd.lha / simplerad / FinalFTP / Light / radmisc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-20  |  3.0 KB  |  72 lines

  1. /**********************************************************************/
  2. /* radmisc.h : include misc stuff for rad.c                           */
  3. /*                                                                    */
  4. /* Copyright (C) 1992, Bernard Kwok                                   */
  5. /* All rights reserved.                                               */
  6. /* Revision 1.0                                                       */
  7. /* May, 1992                                                          */
  8. /**********************************************************************/
  9.  
  10. /**********************************************************************/
  11. /* Prototypes */
  12. /**********************************************************************/
  13. int IsLeaf();
  14. void Find_Receivers();
  15. Polygon *FindShootPatch();           
  16. void ComputeFormfactors();           
  17. void Distribute_Rad();
  18. void Make_ReceiverList();
  19. void ff_Hemicube();
  20. void Subdivide_Elements();
  21.  
  22. /**********************************************************************/
  23. extern OptionType Option;            /* Program options */
  24. extern RadParams ReadLog;            /* Radiosity parameters */
  25. extern double *formfactors;          /* Hemicube form factors */
  26. extern Hemicube hemicube;            /* Hemicube */
  27. extern Scene RadScene;               /* The scene */
  28. extern HBBox Scene_BVH;              /* Scene hierarchical BV tree */
  29. extern Object_List *objlist;         /* List of objects in front of
  30.                     plane of current shooter */
  31. extern int objlist_size;
  32. extern FF_OptionType FF_Options;
  33.  
  34. extern int Poly_Behind_Poly();
  35.  
  36. extern void StartIntersect();        /* Ray tracing routines */
  37. extern void EndIntersect();
  38. extern void Init_ShaftStats();
  39.  
  40. extern void InitHemicube();          /* Hemicube routines */
  41. extern void InitSumFactors();
  42. extern void SumFactors();
  43. extern void FreeSumFactors();
  44. extern void UpdateElementFactors();
  45. extern void MakeTopFactors();
  46. extern void MakeSideFactors();
  47.  
  48. extern void print_Polygon();         /* Print a polygon's info */
  49. extern void print_View();            /* Print PR viewing parameters */
  50. extern void Begin_DrawHC();          /* clear item buffer */
  51. extern void End_DrawHC();            /* read frame buffer */
  52. extern void Begin_DrawDispl();       /* clear display */
  53. extern void End_DrawDispl();         /* swap buffers */
  54. extern void Draw_Polygon();          /* draw polygon */
  55. extern void Draw_PolygonRGB();       /* draw polygon RGB */
  56. extern void CleanUpBuffers();        /* close buffers */
  57. extern Spectra Pr_Ambient_Term();    /* ambient term for display */
  58. extern void Save_Screen_Image();     /* Save image at end of PR */
  59.  
  60. extern void vcr_end_video();         /* Stop the video */
  61.  
  62. extern void LogConv();               /* Loggin convergence */
  63. extern void LogConv_Pt();
  64.  
  65. extern Time_Stats tstats;            /* CPU time statistics */
  66. extern FILE *rlogfile;               /* File of data points of convergence */
  67.  
  68. extern int num_inter;
  69. extern int intermed[4];
  70. extern int test_optik;
  71. extern void Write_RadOptik();
  72.